c string

c stringc string
  1. Using the standard C string functions or your favorite string library , compare the common name and the host name .

    使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。

  2. On success , A pointer to a C string identifying the locale currently set for the category .

    论成功,A类指针的C字符串的识别当前区域设置。

  3. It appends a NULL character so that line contains a properly null-terminated C string .

    它附加一个NULL字符以使字符串行包含一个正确的以空值终止的C字符串。

  4. We 've all seen the C string functions like strcpy (), sprintf (), atol (), etc.

    我们都已经见过C语言中的字符串函数,strcpy(),sprintf(),atoll()等。

  5. Of course , not all languages are this congenial ; for instance , lex has a hard time with C string constants , where special characters modify other characters .

    当然,不是所有语言都是这样的;例如,lex与C字符串常量不相容,因为特殊字符会修改其他字符。

  6. For instance , if UTF-16 data is naively loaded into a C string , the string may be truncated on the second byte of the first ASCII character .

    比方说,如果UTF-16数据原样加载到C字符串中,字符串可能从第一个ASCII字符的第二个字节截断。

  7. Think of an M-text as a generalization of a C string , because it allows the addition of arbitrary properties to the character codes typically associated with a C string .

    可以将M-text当作一个泛化的C字符串,因为这就可以将任意属性添加到通常与C字符串有关的字符代码中。

  8. By itself , std : : string normally protects against buffer overflow , but if you extract an ordinary C string from it ( say by using data () or c_str ()), all the problems discussed above resurface .

    就其本身而言,std::string通常会防止缓冲区溢出,但是如果通过它提取一个普通C字符串(比如使用data()或cstr()),那么上面讨论的所有问题都会重新出现。

  9. The printk function relies on a feature of the C language called string literal concatenation .

    printk是基于C语言中一个名为字符串逐字连接的特性。

  10. More specifically , C copies a string that doesn 't fit into the100 characters allocated for it .

    特别是,C复制一个字符串,该字符串不适于为它分配的100个字符。

  11. A little trick is assigning py_digest ( a Python string ) to digest ( a C / Pyrex string ) in order to type it .

    一个小技巧是将pydigest(一个Python字符串)赋值给digest(一个C/Pyrex字符串),目的是确定其类型。

  12. First string through the shoulder plate as shown in Figure C , then string through chest plates shoulder plate hole , tighten the knot below the armpit as shown in Figure D.

    先把绳如图C所示穿过肩甲,再穿过胸甲的肩部孔,在腋下收紧打结。如图D所示。

  13. You 'll also find some simplifications from C , which include string concatenation , associative array elements , and aggregation operators .

    您还看到从C语言带来的简化,其中包括字符串连接、关联数组元素和合并操作符。